<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div id="div">
        <!-- v-model:双向数据绑定 -->
        账号<input type="text" v-model="username">
        密码<input type="password" v-model="password">
    </div>



</body>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: '#div',
        data: {
            username: "",
            password: ""
        },

    })
</script>

</html>